import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index.vue'
import login from '@/pages/login.vue'
import register from '@/pages/register.vue'
import userCenter from '@/pages/userCenter.vue'
import enterPark from '@/pages/enterPark.vue'
import outPark from '@/pages/outPark.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/userCenter',
      name: 'userCenter',
      component: userCenter
    },
    {
      path: '/enterPark',
      name: 'enterPark',
      component: enterPark
    },
    {
      path: '/outPark',
      name: 'outPark',
      component: outPark
    },
  ]
})
